﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;

namespace SigMIS.Model
{
    public class RoadLine : BasePoco
    {
        [Display(Name = "线路名")]
        [StringLength(32)]
        public string RoadLineName { get; set; }

        [Display(Name = "信息点代码")]
        [StringLength(20)]
        public string POICode { get; set; }
        
        [Display(Name = "信息点名称")]
        [StringLength(20)]
        public string POIName { get; set; }

        [Display(Name = "信息点属性")]
        [StringLength(2)]
        public string POIAttribute { get; set; }


        [Display(Name = "工作模式")]
        [StringLength(3)]
        public string WorkMode { get; set; }

        [Display(Name = "经度")]
        public double Longitude { get; set; }

        [Display(Name = "纬度")]
        public double Latitude { get; set; }

        [Display(Name = "公里标")]
        public uint Mileage { get; set; }


        [Display(Name = "所属路局名称")]
        [StringLength(10)]
        public string AtBureauName { get; set; }
        
        [Display(Name = "所属路局代码")]
        [StringLength(1)]
        public string AtBureauCode { get; set; }


        [Display(Name = "所属线路名称")]
        [StringLength(8)]
        public string AtRoadLineName { get; set; }

        [Display(Name = "所属线路代码")]
        [StringLength(5)]
        public string AtRoadLineCode { get; set; }


        [Display(Name = "所属区段名称")]
        [StringLength(21)]
        public string AtSectionName { get; set; }


        [Display(Name = "所属调度区段名称")]
        [StringLength(10)]
        public string AtDispatchingName { get; set; }


        [Display(Name = "车站名称")]
        [StringLength(8)]
        public string StationName { get; set; }

        [Display(Name = "车站代码")]
        [StringLength(5)]
        public string StationCode { get; set; }
        
        [Display(Name = "车站电话号码")]
        [StringLength(8)]
        public string StationPhone { get; set; }


        [Display(Name = "曲径")]
        [StringLength(25)]
        public string Meandering { get; set; }


        [Display(Name = "海拔")]
        public double Altitude { get; set; }


        [Display(Name = "归属GRIS的IP地址")]
        [StringLength(20)]
        public string IP { get; set; }
    }
}
